2e1a72d6d61d3fd10233afda7ec41c3e9572a367,src/main/java/hex/nn/NNModel.java,NNModel,generateHTML,#String#StringBuilder#,546

Before Change


      String training = "Number of training set samples for scoring: " + (fulltrain ? "all " : "") + pts;
      if (pts < 1000 && model_info().data_info()._adaptedFrame.numRows() >= 1000) training += " (low, scoring might be inaccurate -> consider increasing this number in the expert mode)";
      if (pts > 100000) training += " (large, scoring can be slow -> consider reducing this number in the expert mode or scoring manually)";
      DocGen.HTML.section(sb, training);
    }
    // validation
    if (error.validation) {

After Change


      final String cmTitle = "<br/>Confusion Matrix reported on " + (error.validation ?
              "Validation Data" + (fullvalid ? "" : " (" + score_valid + " samples)") + ":"
              : "Training Data" + (fulltrain ? "" : " (" + score_train + " samples)") + ":");
      DocGen.HTML.paragraph(sb, cmTitle);
      if (error.train_confusion_matrix != null) {
        if (error.train_confusion_matrix.cm != null && error.train_confusion_matrix.cm.length < 30) {
          if (error.validation && error.valid_confusion_matrix != null && error.valid_confusion_matrix.cm != null) error.valid_confusion_matrix.toHTML(sb);